#include <stdio.h>
#include <string.h>
#include "DebugUtils.h"

/* Print all information about the movies in the movies list. */
void printMovies(MoviesList movies, int moviesSize, int i){
	if(DEBUG){
		printf("** DEBUG: ON **\n");
		int i;
		for(i=0; i<moviesSize; i++){
			printf("id: [%d]\n",movies[i].id);
			printf("title: [%s]\n",movies[i].title);
			printf("sinopse: [%s]\n",movies[i].sinopse);
			printf("room: [%s]\n",movies[i].room);
			printf("hours: [%s]\n",movies[i].hours);
			printf("rate: [%f]\n",movies[i].rate);
			printf("clients: [%d]\n\n",movies[i].clients);
		}
	}
}

/* Print response. */
void printResponse(char* response){
	if(DEBUG){
		if(response != NULL){
			printf("Response: [%s]\n\n", response);
		} else {
			printf("Response: [null]\n\n");
		}
	}
}
